<?php

namespace App\Http\Controllers\Api\V1;

use Carbon\Carbon;
use App\Models\Circle;
use Illuminate\Support\Facades\Cache;
use App\Http\Controllers\Api\V1\Resources\CirclesResource;
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;



class CirclesController extends Controller
{
	
	public function index()
	{
		
		$circle  =Circle::query()->where('is_sale',true)->orderbyDesc('is_top')->orderbyDesc('id')->paginate();

		return CirclesResource::collection($circle);
	}

	
}
